package com.orange.core.pojo.entity.banner.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Banner管理表
 * @TableName bannerDTO
 */
@Data
public class BannerDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * banner标题
     */
    @NotNull(message = "banner标题不能为空")
    private String title;

    /**
     * 图片URL
     */
    @NotNull(message = "图片URL不能为空")
    private String imageUrl;

    /**
     * 点击跳转链接
     */
    private String linkUrl;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空")
    private Integer sortOrder;

}